package cn.kgc.service.administrative;

import cn.kgc.dao.administrative.smc_MingPianDao;
import cn.kgc.pojo.Businesscard;
import cn.kgc.pojo.Chapters;
import cn.kgc.pojo.Dict;
import cn.kgc.pojo.Jobtitle;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: smc
 * @date: 2022/2/16
 * @description:
 */
@Service
public class smc_MingPianServiceImpl implements smc_MingPianService {
    @Resource
    private smc_MingPianDao mp;
    @Override
    public Jobtitle selJobById(Integer id) {
        return mp.selJobById(id);
    }

    @Override
    public List<Businesscard> selBuList(Integer id) {
        return mp.selBuList(id);
    }

    @Override
    public List<Dict> selDictAll(Integer id) {
        return mp.selDictAll(id);
    }

    @Override
    public boolean addYongZhang(Chapters chapters) {
        if(mp.addYongZhang(chapters)>0){
            return true;
        }
        return false;
    }

    @Override
    public boolean addMingPian(Businesscard businesscard) {
        if(mp.addMingPian(businesscard)>0){
            return true;
        }
        return false;
    }

    @Override
    public Page<Chapters> selChapters(Integer id,Integer state) {
        return mp.selChapters(id,state);
    }

    @Override
    public Page<Businesscard> selBusinesscard(Integer id,Integer state) {
        return mp.selBusinesscard(id,state);
    }

    @Override
    public boolean updYz(Integer id) {
        if(mp.updYz(id)>0){
            return true;
        }
        return false;
    }

    @Override
    public boolean updMp(Integer id) {
        if(mp.updMp(id)>0){
            return true;
        }
        return false;
    }

    @Override
    public Dict selss(Integer id) {
        return mp.selss(id);
    }

    @Override
    public List<String> selmz(Integer id) {
        return mp.selmz(id);
    }
}
